package com.ld.collegetask.beans;

/**
 * Created by 樊海波 on 2017/10/31.
 */

public class TurnoverBean {


    private Integer turnoverId;
    private String type;
    private String transaction;
    private String createtime;
    private String abalance;
    private String serialnumber;

    public String getSerialnumber() {
        return serialnumber;
    }

    public void setSerialnumber(String serialnumber) {
        this.serialnumber = serialnumber;
    }

    public Integer getTurnoverId() {
        return turnoverId;
    }

    public void setTurnoverId(Integer turnoverId) {
        this.turnoverId = turnoverId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTransaction() {
        return transaction;
    }

    public String getTransaction_1() {
        String str = "";
        if (type.equals("支出")){
            str = "-";
        }else if (type.equals("转入")){
            str = "+";
        }
        return str+transaction;
    }

    public void setTransaction(String transaction) {
        this.transaction = transaction;
    }

    public String getCreatetime() {
        return createtime.split("\\.")[0];
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getAbalance() {
        return abalance;
    }

    public void setAbalance(String abalance) {
        this.abalance = abalance;
    }
}
